package com.yilin.tms.core.entity.order.rob;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseNoteEntity;
import com.yilin.tms.core.commons.annotation.Explain;

import javax.persistence.*;
import java.util.List;


@Entity
@Table(name = "rob_order_note")
@TableName(value = "rob_order_note")
public class RobOrderNote extends BaseNoteEntity {

    @Explain("货源ID")
    @Column(name = "goods_order_id")
    private String goodsOrderId;
    @Explain("抢单ID")
    @Column(name = "rob_order_id")
    private String robOrderId;
    @Explain("原货源节点ID")
    @Column(name = "goods_order_note_id")
    private String goodsOrderNoteId;//

    @Explain("节点货物量")
    @Column(name = "rob_note_measure")
    private Double robNoteMeasure;
    @Explain("节点运输费")
    @Column(name = "rob_note_transport_cost")
    private Double robNoteTransportCost;
    @Explain("计量单位")
    @Column(name = "measure_unit")
    private String measureUnit;

    /**
     * 货物LIST
     * */
    @Transient
    @TableField(exist = false)
    @Explain("货物List")
    private List<RobOrderNoteDetail> robOrderNoteDetailList;


    public Double getRobNoteMeasure() {
        return robNoteMeasure;
    }

    public void setRobNoteMeasure(Double robNoteMeasure) {
        this.robNoteMeasure = robNoteMeasure;
    }

    public Double getRobNoteTransportCost() {
        return robNoteTransportCost;
    }

    public void setRobNoteTransportCost(Double robNoteTransportCost) {
        this.robNoteTransportCost = robNoteTransportCost;
    }

    public String getMeasureUnit() {
        return measureUnit;
    }

    public void setMeasureUnit(String measureUnit) {
        this.measureUnit = measureUnit;
    }

    public String getRobOrderId() {
        return robOrderId;
    }

    public void setRobOrderId(String robOrderId) {
        this.robOrderId = robOrderId;
    }

    public List<RobOrderNoteDetail> getRobOrderNoteDetailList() {
        return robOrderNoteDetailList;
    }

    public void setRobOrderNoteDetailList(List<RobOrderNoteDetail> robOrderNoteDetailList) {
        this.robOrderNoteDetailList = robOrderNoteDetailList;
    }

    public String getGoodsOrderId() {
        return goodsOrderId;
    }

    public void setGoodsOrderId(String goodsOrderId) {
        this.goodsOrderId = goodsOrderId;
    }

    public String getGoodsOrderNoteId() {
        return goodsOrderNoteId;
    }

    public void setGoodsOrderNoteId(String goodsOrderNoteId) {
        this.goodsOrderNoteId = goodsOrderNoteId;
    }
}
